package cn.tedu.egmybatis3.mapper;

import cn.tedu.egmybatis3.entity.Product;
import cn.tedu.egmybatis3.vo.ProductVO;
import cn.tedu.egmybatis3.vo.ProductVO2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {

    void insertProduct(Product product);
    ProductVO selectOneProduct(Long id);
    List<ProductVO2> selectAllProduct();
    void deleteProduct(Long id);
    void updateProduct(Product product);
    void deleteById(List<Long> ids);
    void dynamicUpdate(Product product);
    int selectCount();

}
